using System;
using System.Collections.Generic;
using System.Text;

namespace MapEditor
{
    class Timer
    {
        public int Time;
        private int StartTime;
        private int EndTime;

        public void StartTimer()
        {
            StartTime = (DateTime.Now.Second * 1000) + DateTime.Now.Millisecond;
        }

        public void StopTimer()
        {
            EndTime = (DateTime.Now.Second * 1000) + DateTime.Now.Millisecond;
            Time = EndTime-StartTime;


        }


    }
}
